const mysql = require("mysql2");

const db = mysql.createPool({
  host: "111.229.220.153",
  user: "Juejing",
  password: "Juejing0518cc",
  database: "Juejing",
  port: 3306,
  charset: "utf8mb4",
});

// 使用 mysql2 提供的 promise API
module.exports = { db };
